<script setup lang="ts">

import {useBasicContent} from "../../hooks/useBasicContent";

const {account} = defineProps<{
  account: string
}>()

const {user, getUserInformation} = useBasicContent()
getUserInformation(account)
</script>

<template>
  <div class="content-main-box">
    <el-form :model="user" label-width="120px">
      <el-form-item label="用户昵称:">
        <el-input :disabled="user.nameDisable" v-model="user.userName" placeholder="用户昵称" clearable/>
      </el-form-item>
      <el-form-item label="用户ID:">
        <el-input disabled v-model="user.userID" placeholder="用户ID" clearable/>
      </el-form-item>
      <el-form-item label="性别:">
        <el-select :disabled="user.SexDisable" v-model="user.userSex" placeholder="性别">
          <el-option label="男" value="男"/>
          <el-option label="女" value="女"/>
        </el-select>
      </el-form-item>
      <el-form-item label="个人简介:">
        <el-input :disabled="user.ExplainDisable" v-model="user.userExplain" placeholder="个人简介" clearable/>
      </el-form-item>
      <el-form-item label="所在地区:">
        <el-input :disabled="user.LiveDisable" v-model="user.userLive" placeholder="所在地区" clearable/>
      </el-form-item>
      <el-form-item label="地址管理:">
        <el-input :disabled="user.AddressDisable" v-model="user.userAddress" placeholder="地址管理" clearable/>
      </el-form-item>
      <el-form-item label="出生日期:">
        <el-date-picker :disabled="user.BirthdayDisable"
                        v-model="user.userBirthday"
                        type="date"
                        placeholder="Pick a date"
                        clearable
        />
      </el-form-item>
      <el-form-item label="开始工作:">
        <el-date-picker :disabled="user.StartWorkDisable"
                        v-model="user.userStartWork"
                        type="date"
                        placeholder="Pick a date"
                        clearable
        />
      </el-form-item>
    </el-form>
  </div>
</template>

<style scoped lang="scss">
@import "../style/Content";
</style>